<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My Servlet Jsp Model Mvc</title>
<style type="text/css">
    body{background:#e9f3f9;}
	.page{width:960px;margin:auto;background:#e9f3f9;font-family:Georgia,serif;font-size:13px;color:#646d7a;}
	.title{width:450px; color:#849db0;font-size:13px; font-style:italic;padding-left:12px;}
	.date{width:120px;}
	.right{float:right;}
	.left{float:left;}
	.clear{clear:both;}
	.main{width:720px;margin-left:28px;}
	.rightCol{width:180px;margin-right:28px;}
	.hot{padding:0 15px; font-style:italic;font-size:12px;font-family:Georgia,serif;}
	.monthHot{padding:8px 0;border-bottom:1px dotted #beced8;color:#313131;}
	.datetime{color:#646d7a;float:right;width:250px;}
	.questions{table-layout:fixed;border:1px solid silver;background:white;}
	.item{border-bottom:2px solid #beced8;}
</style>
</head>
<body>
<div class="page">
	<div class="head">
	    <div class="title left"><img src="<c:url value="tinayaPlatform.png" /> " alt="tianya" ></img> 天涯问题经验汇</div>
	     <div class="date right"><img src="/images/july_en.png" width="109" height="70" alt="July 2011" style="display:block"/>  </div>
	</div>
	
	<div class="clear"> </div>
	
	<div class="body">
		<div class="main left">
			<div class="operations">
				<span><a href="<c:url value="/question/post.do" /> " >发布新的问题</a></span>
			</div>
			
			<img alt="header round" src="/images/header.png" style="display:block;">
			<table class="questions">
				<thead>
				<tr>
					<th>类型</th>
					<th width="450">标题</th>
					<th>回复总数</th>
					<th>浏览次数</th>
				</tr>
				</thead>
				<tbody>
				<c:forEach var="question" items="${questions}" begin="0" end="9">
				<tr class="item">
				   <td></td>
				   <td width="500"><a href="<c:url value="/question/show.do?id=${question.id}" /> "> ${question.title}</a><br/><span class="datetime"> 发表于:${question.createTime } </span></td>
				   <td></td>
				   <td></td>
				  </tr>
				 </c:forEach>
				</tbody>
				<tfoot></tfoot>
			</table>
			<img alt="header round" src="/images/footer.png" style="display:block;">
		</div><!--  end.main -->
		
		<div class="rightCol right">
		<img src="images/toc-header.png" width="170" height="20" alt="head-nav" style="display:block"/>
			<ol class="hot">
				<li class="monthHot"><a href="#" title=""	>Customization is King</a></li>	
				<li class="monthHot"><a href="#" title=""	>Customization is King</a></li>	
				<li class="monthHot"><a href="#" title=""	>Customization is King</a></li>	
				<li class="monthHot"><a href="#" title=""	>Customization is King</a></li>	
				<li class="monthHot"><a href="#" title=""	>Customization is King</a></li>	
			</ol>
		</div>
		
	</div><!--  end.body -->
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="foot">
	 getServletPath:
	 <%=request.getServletPath()%> <br/>
	 getContextPath:
	 <%=request.getContextPath() %><br/>
	 getRequestURL:
	 <%=request.getRequestURL() %><br/>
	 getRequestURI
	 <%=request.getRequestURI() %><br/>
	 getRemoteHost:
	 <%=request.getRemoteHost() %><br/>
	 getRemoteAddr:
	 <%=request.getRemoteAddr() %><br/>
	 getLocalAddr:
	 <%=request.getLocalAddr() %><br/>
	 getLocalName:
	 <%=request.getLocalName() %>
	 
	</div>
	
</div>

</body>
</html>